<%--
  Created by IntelliJ IDEA.
  User: 86151
  Date: 2023/3/17
  Time: 15:13
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <script>
        function del() {
            return confirm("delete this record?");
        }
    </script>
</head>
<body>
<center><h1>XX公司OA人员管理系统</h1></center>
<br>
<center><h1>欢迎${sessionScope.name}登录</h1></center>
<table border="1">
    <tr>
        <th>ID</th>
        <th>NAME</th>
        <th>PWD</th>
        <th>AGE</th>
        <th>SEX</th>
        <th colspan="3">操作</th>
    </tr>
    <c:forEach var="employee" items="${sessionScope.name}">
        <tr>
            <td>${employee.id}</td>
            <td>${employee.name}</td>
            <td>${employee.password}</td>
            <td>${employee.age}</td>
            <td>${employee.sex}</td>
            <td><a href="/employee?action=findById&id=${employee.ID}">修改</a></td>
            <td><a href="/employee?action=removeById&id=${employee.ID}" onclick="return del()">删除</a></td>
            <td><a href="/employee?action=detail&id=${employee.ID}">详情</a></td>
        </tr>
    </c:forEach>
    <tr>
        <td rowspan="8"><center><a href="">增加</a></center></td>
    </tr>
    <tr>
        <td rowspan="8"><center><a href="">部门管理</a></center></td>
    </tr>

    <tr>
        <td rowspan="8"><center><a href="">物品管理</a></center></td>
    </tr>
    <tr>
        <td rowspan="8"><center><a href="">考勤管理</a></center></td>
    </tr>
    <tr>
        <td rowspan="8"><center><a href="">会议退出</a></center></td>
    </tr>
    <tr>
        <td rowspan="8"><center><a href="">退出</a> </center></td>
    </tr>




</table>


</body>
</html>
